import axios from "./axios";

const article = {
    getList: (pageNo,pageSize,userId)=>{
        return axios({
            method: 'get',
            url: '/article/list',
            params: {pageNo,pageSize,userId}
        })
    },
    publish: (params) => {
        return axios({
            method: 'post',
            url: '/article/publish',
            data: params
        })
    },
    getDetail: (articleId)=>{
        return axios({
            method: 'get',
            url: '/article/detail',
            params: {articleId}
        })
    },
    scan: (articleId) => {
        return axios({
            method: 'get',
            url: '/article/scan',
            params: {articleId}
        })
    },
    like: (params) => {
        return axios({
            method: 'get',
            url: '/article/like',
            params
        })
    }
}

export default article